package daily;

/**
 * @Date 2022/1/15
 * @Created by Jonathan
 */
public class DefaultSingletonBeanRegistry {

    public Object getSingleton(String beanName, ObjectFactory<?> singletonFactory) {
        System.out.println("before");
        Object object = singletonFactory.getObject();// 真正调用的地方在这里
        System.out.println("after");
        return object;
    }

}
